<div class="cloud">
    <h3>标签云</h3>
    <ul>
        <?php foreach($category as $key => $val): ?>
            <li><a href="/"><?php echo $val['cname'] ?></a></li>
        <?php endforeach; ?>
    </ul>
</div>